package cn.lj.org.controller;

import cn.lj.org.domain.Login;
import cn.lj.org.service.ILogininfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController //@Controller+@ResponseBody(转换json)
@RequestMapping("/log")
@Api(tags = "登录接口",description = "登录接口详细描述")
public class LogininfoController {
    @Autowired
    private ILogininfoService logininfoService;

    @GetMapping
    @ApiOperation(value = "登录信息查找",notes = "查找所有登录信息")
    public List<Login> findAll(){
        List<Login> list = logininfoService.getAll();
        return list;
    }

}
